SET JOYSTICK DEADZONE
This command is used to specify the percentage movement required on the controller to trigger the JOYSTICK UP/JOYSTICK DOWN/JOYSTICK LEFT/JOYSTICK RIGHT function.
SET JOYSTICK DEADZONE Percentage Value
Percentage Value
Integer
Percentage of joystick travel.
This command does not return a value.
By default the percentage is 0.
sync on
sync rate 60
ZoneSize = 0
do
cls
if inkey$() = "+" and ZoneSize < 100 then inc ZoneSize
if inkey$() = "-" and ZoneSize > 0 then dec ZoneSize
set joystick deadzone ZoneSize
print "Joystick deadzone is at "; ZoneSize; "%"
print
if joystick up() = 1 then print "Joystick up"
if joystick down() = 1 then print "Joystick down"
if joystick left() = 1 then print "Joystick left"
if joystick right() = 1 then print "Joystick right"
sync
loop
INPUT Commands Menu
Index